package ai.people.netmon.warning.mapper;

import ai.people.netmon.framework.domain.warning.entity.WarningSubject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author ligua
* @description 针对表【warning_subject(预警主题表)】的数据库操作Mapper
* @createDate 2022-07-28 17:50:38
* @see  ai.people.netmon.framework.domain.warning.entity.WarningSubject
*/
public interface WarningSubjectMapper extends BaseMapper<WarningSubject> {


    /**
     * 判断主题重复
     *
     * @param subjectName         主题名称
     * @param userId              用户id
     * @param exclusionSubjectIds 排除主题id
     * @return {@link WarningSubject}
     */
    WarningSubject judgingSubjectRepetition(String subjectName, Long userId, List<Long> exclusionSubjectIds);


    /**
     * 主题分析列表
     *
     * @param userId 用户id
     * @return {@link List}<{@link WarningSubject}>
     */
    List<WarningSubject> listSubjectAnalysis(Long userId);

}




